package com.jiawa.wiki.entity;

import java.util.Date;

public class User {
    private String phone;

    private String password;

    private String username;

    private String email;

    private Date time;

    private String sex;

    private String age;

    private String grade;

    private String status;

    private String power;

    public User(String phone, String password, String username, String email, Date time, String sex, String age, String grade, String status, String power) {
        this.phone = phone;
        this.password = password;
        this.username = username;
        this.email = email;
        this.time = time;
        this.sex = sex;
        this.age = age;
        this.grade = grade;
        this.status = status;
        this.power = power;
    }

    public User() {
        super();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", phone=").append(phone);
        sb.append(", password=").append(password);
        sb.append(", username=").append(username);
        sb.append(", email=").append(email);
        sb.append(", time=").append(time);
        sb.append(", sex=").append(sex);
        sb.append(", age=").append(age);
        sb.append(", grade=").append(grade);
        sb.append(", status=").append(status);
        sb.append(", power=").append(power);
        sb.append("]");
        return sb.toString();
    }
}